//编写一个程序读取输入，读到#为止步，读取空格，换行符和其他
#include<stdio.h>
int main()
{
    char ch;
    int space, enter, other;
    space= enter = other = 0;
    while((ch = getchar()) != '#')
    {
        if (ch == '\n')
	    enter++;
	else if(ch == ' '|| ch == '\t')
	    space++;
	else
	    other++;
    }
    printf("space:%d, enter:%d, other:%d\n", space, enter, other);
    return 0;
}
